<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>overflow属性清楚浮动</title>
  <style>
    .father{
      background: #ccc;
      border: 1px dashed #999;
      overflow: hidden;
    }
    .box01,.box02,.box03{
      height: 50px;
      line-height: 50px;
      background: #f9c;
      border: 1px dashed #999;
      margin: 15px;
      padding: 0px 10px;
      float:left;
    }
  </style>
</head>
<body>
<div class="father">
  <div class="box01">box01</div>
  <div class="box02">box02</div>
  <div class="box03">box03</div>
</div>
</body>
</html>